package com.hyk.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyk.domain.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyk.model.SymbolAssetVo;
import com.hyk.model.UserTotalAccountVo;

import java.math.BigDecimal;

public interface AccountService extends IService<Account>{


    void transfer(Long coinFrom,
                  Long coinTo,
                  Long userFrom,
                  Long userTo,
                  Long orderId,
                  String businessType,
                  BigDecimal amount,
                  BigDecimal fee,
                  String remark);

    Account findUserAccountByCoinName(Long coinId,String coinName,Long userId);

    Page<Account> findPageForList(Page<Account> page, Long userId, String userName, String mobile, Long coinId, String startAmount, String endAmount, Byte status);

    SymbolAssetVo findSymbolAccount(String symbol);

    UserTotalAccountVo findTotal();

    Boolean transferUserLock(Long coinId, Long userId, BigDecimal amount, Long orderId);
}
